package com.cby.ssm.service;

import com.cby.ssm.entity.PermissionEntity;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * Created by 13296 on 2017/7/20.
 */
public interface PermissionService {
    List<PermissionEntity> searchAllPermission() throws Exception;
    PermissionEntity searchPermission(String permissionId) throws Exception;
    List<PermissionEntity> searchPermissions(String key) throws Exception;
    @Transactional
    PermissionEntity editPermission(PermissionEntity p) throws Exception;
    boolean deletePermission(String deleteId,String notDeleteId) throws Exception;
    @Transactional
    void addPermission(String permissionName)throws Exception;
}
